<template>
  <div class="page-container">
    <PanelTab @change="handleChange"> </PanelTab>
    <div class="page-content">
      <el-row :gutter="10">
        <el-col :span="12">
          <PanelChart :time="time" chartType="pie" title="推送进度" :api="apiBusinessPushProgress" param="" />
        </el-col>
        <el-col :span="12">
          <PanelChart :time="time" chartType="pie" title="覆盖会员情况" :api="apiBusinessVipLevelNum" param="" />
        </el-col>
        <el-col :span="24">
          <Panel1 :time="time" title="推送汇总" />
        </el-col>
        <el-col :span="24">
          <Panel2 title="连续5天未推送的会员" />
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
import { apiBusinessPushProgress, apiBusinessVipLevelNum } from '@/api/dataStatistics/index'
import PanelTab from '@/components/panel/PanelTab.vue'
import PanelChart from '@/components/panel/PanelChart.vue'
import Panel1 from './components/Panel1.vue'
import Panel2 from './components/Panel2.vue'

export default {
  name: 'AlonePush',
  components: { PanelTab, PanelChart, Panel1, Panel2 },
  data() {
    return {
      time: {},
      showDialogExport: false,
      apiBusinessPushProgress,
      apiBusinessVipLevelNum,
    }
  },
  mounted() {},
  destroyed() {},
  methods: {
    // 时间变动
    handleChange(time) {
      this.time = time
    },
  },
}
</script>

<style scoped lang="scss">
.page-content {
  padding-top: 62px;
}
</style>
